//
//  EnumConfig.h
//  bus
//
//  Created by hychen on 17/3/30.
//  Copyright © 2017年 Hychen. All rights reserved.
//

#ifndef EnumConfig_h
#define EnumConfig_h

/*
 typedef NS_ENUM(NSInteger,xxx){
 
 };
 */

//设备状态
typedef NS_ENUM(NSInteger,DeviceStatus){
    DeviceStatusOffline = 0, //离线
    DeviceStatusOnline,      //在线
};

typedef NS_ENUM(NSInteger,CarLogInOutType){
    CarLogInOutTypeAPP = 0,     //APP
    CarLogInOutTypePC,          //PC端
    CarLogInOutTypehand,        //手工
};

//收藏类型
typedef NS_ENUM(NSInteger,FavType){
    FavTypeDevice = 0,  //设备收藏
    FavTypeWorkArea,    //工区收藏
    FavTypeLine,        //线路收藏
};

//车辆进出岗状态
typedef NS_ENUM(NSInteger,CarLogType){
    CarLogTypeLogIn = 0,    //已进岗
    CarLogTypeLogOut,       //已出岗
};

//事件类型
typedef NS_ENUM(NSInteger,EventType){
    EventTypeNormal = 0,    //普通
    EventTypeWarn,          //警告
    EventTypeSerivous,      //严重
    EventTypeHeavy,         //重大
};

//报警类型
typedef NS_ENUM(NSInteger,WarnType){
    WarnTypeUserWatch = 0,   //人员巡检报警
    WarnTypeElectronFence,        //电子围栏报警
    WarnTypeSOS,            //SOS报警
    WarnTypeCutdown,        //192
    WarnTypeDisappear,      //消失报警
    WarnTypeElectronFenceDone,  //电子围栏报警消除
    WarnTypeCutdownDone,        //剪断报警消除
    WarnTypeLowBattery,     //低电量报警
};

//工区状态
typedef NS_ENUM(NSInteger,WorkAreaStatus){
    WorkAreaStatusTodoWork = 0,     //未开工
    WorkAreaStatusWorking,          //施工中
    WorkAreaStatusFinish,           //已完工
};

//设备类型
typedef NS_ENUM(NSInteger,BusDeviceType){
    BusDeviceTypeIOS        = 1,
    BusDeviceTypeAndroid,
    BusDeviceTypeWinPhone,
    BusDeviceTypeWeb,
    BusDeviceTypeWeixin,
    BusDeviceTypeNode
};

typedef NS_ENUM(NSInteger,NotifyRangeType){
    NotifyRangeTypeAll = 0,       //全员
    NotifyRangeTypeRange,         //范围
    NotifyRangeTypePersonal,      //个人
};

//处理结果
typedef NS_ENUM(NSInteger,HandleResult){
    HandleResultTodo = 0,   //未处理
    HandleResultDone,       //已处理
};

//报警等级类型
typedef NS_ENUM(NSInteger,WarnLevelType){
    WarnLevelTypeNormal = 0,   //普通
    WarnLevelTypeWarn,         //警告
    WarnLevelTypeSerious,      //严重
    WarnLevelTypeHeavy,        //重大
};

//线路状态
typedef NS_ENUM(NSInteger,LineWorkingStatus){
    LineWorkingStatusTodo = 0,      //未开工
    LineWorkingStatusWorking,       //施工中
    LineWorkingStatusFinish,        //已完工
};

//人员统计类型
typedef NS_ENUM(NSInteger,MemberStatisticType){
    MemberStatisticTypeAll = 0,     //全部
    MemberStatisticTypeOnline,      //在线
    MemberStatisticTypeWork,        //施工
    MemberStatisticTypeObserver,    //监理
    MemberStatisticTypeManage,      //管理
    MemberStatisticTypeOwner,       //业主
    MemberStatisticTypeOther,       //其他
};

typedef NS_ENUM(NSInteger,DeviceStatisticType){
    DeviceStatisticTypeRke = 1,   //门禁
    DeviceStatisticTypeTbk,   //对讲
    DeviceStatisticTypeBroadcast,   //广播
    DeviceStatisticTypeLocal,   //定位
    DeviceStatisticTypeEnv,   //环境
    DeviceStatisticTypeHeavy,   //重型
    DeviceStatisticTypeOther,   //其他
    DeviceStatisticTypeVideo,   //视频设备
};

//车型
typedef NS_ENUM(NSInteger,CarType){
    CarTypeSedan = 0,   //轿车
    CarTypeCoach,       //客车
    CarTypeTruch,       //卡车
    CarTypeTractor,     //牵引车
    CarTypeTransport,   //专用运输车
    CarTypeSpecialCar,  //特种车
};

#endif /* EnumConfig_h */
